#########################################################################
# File : /lua/ui/network/lobbyredirect.lua
# Description : C calls to the lobby are redirected to this module
# Author : Neruz
#########################################################################

function ConnectToPeer(pData, sData, misc, a)
	# This function is called in the front-end layer and doesn't share the globals with the ingame ui.
	existingData = GetFrontEndData('DarkSkiesData')
	table.insert(existingData, {pData, sData})
	SetFrontEndData('DarkSkiesData', existingData)
	#LOG('Data recv in front-end', pData, sData)
end

-- oldSetFrontEndData = SetFrontEndData
-- function _G.SetFrontEndData(key, data)
-- 	LOG('Front - end Set')
-- 	oldSetFrontEndData(key, data)
-- end